#pragma once
#include "SgObject.h"
#include "SgPtr.h"
#include "graphics/Texture.h"

class CSgTexture : public CSgObject
{
public:
	CSgTexture(CTexture* tex);
	virtual ~CSgTexture(void);

	//void SetTexture(GLuint tex) {m_texture = tex;}
	void SetChild(CSgObject* p_child) {/*{p_child->IncRef();*/ m_child = p_child;}
	virtual void Render();

private:
	//CSgObject * m_child;
	CSgPtr<CSgObject> m_child;
	CTexture* m_texture;
};
